<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
//	String id = request.getParameter("id");

%>
<div>
	<div class="pop_up_title images_13">
		指定使用车辆
	</div>
	<div id="pop_up_content">
		<form id="editForm" action="<%=basePath %>carriageEntry/carriageEntryAction!checkData.action">
			<input type="hidden" value="<s:property value='id' />" name="id"/>
			<table border="0" cellpadding="0" cellspacing="0" width="450" align="center">
				<tr>
					<td width="50%">
						<div class="form_input_value" style="margin-left: 100px;">
							<span class="red">*</span>请选择车辆:
						</div>
					</td>
					<td align="left">
						 <select name="carriageId">
							<s:iterator value="carriageList">
								<option value='<s:property value="id"/>' selected="selected"><s:property value="carriageCode"/></option>
							</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input id="editSubmit" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
						<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
	               </td>
	            </tr>
			</table>
		</form>
	</div>
</div>
<script>
	/* 表单提交 */
	i.formSubmit("editSubmit",	//绑定的按钮id
					  "editForm" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								loadContentLink('<%=basePath %>carriageEntry/carriageEntryAction!carriageEntryList.action');
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});

</script>
